package com.xingkeduo.pojo.enums;

import com.xingkeduo.util.pojo.base.BaseEnum;

/**
 * @author pantong 
 * 到点距离标签
 **/
public enum DistanceEnums implements BaseEnum {
    Min_5(1, "5分钟以内"),
    Min_5_10(2, "5~10分钟"),
    Min_10(3, "15分钟以上");

    private int id;

    private String name;

    private DistanceEnums(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public static String getNameById(int id) {
    	for (DistanceEnums s : DistanceEnums.values())
            if(s.id==id){
                return s.name;
        }
    	return "";
    }

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int getValue() {
		// TODO Auto-generated method stub
		return 0;
	}
    
   
}
